
<div class="container" ng-app="loginApp" ng-controller="loginController">
   <div class="col-md-6 col-md-offset-3">
       <div class="page-header">
           <h1 class="text-center">angularJS 增删改查项目</h1>
       </div>
       <div id="messages" class="well" ng-show="message">{{ message }}</div>
       <form ng-submit="postForm()">
           <div class="form-group">
               <label >用户名</label>
               <input type="text" name="username" class="form-control"
                ng-model="formData.username" placeholder="请输入账号">
               <span class="help-block" ng-show="errorUsername">{{errorUsername}}</span>
           </div>
           <div class="form-group">
               <label >密码</label>
               <span class="help-block" ng-show="errorPassword">{{errorPassword}}</span>
               <input type="text" name="password" class="form-control"
                ng-model="formData.password" placeholder="请输入密码">

           </div>
           <button type="submit" class="btn btn-block btn-lg btn-success">
               <span class="glyphicon glyphicon-flash"></span>提交
           </button>
       </form>
   </div>
</div>